<template>
  <div>
    <div>我是Child</div>
  </div>
</template>

<script lang="ts">
import { defineComponent } from "vue";

export default defineComponent({
  name: "Child",
});
</script>

<script setup lang="ts">
import {useAttrs} from "vue"

defineProps<{
  a:string
}>()
const attrs = useAttrs()
console.log(attrs);

//使用useAttrs接收批量批量传递的数据包括class , style , 自定义事件
</script>
